<?php defined('_JEXEC') or die('Restricted access');


?>
<form action="index.php" method="post" name="adminForm">
<div id="editcell">
	<table>
		<tr>
			<td align="left" width="100%">
				<?php echo JText::_( 'Cari Nama Kota' ); ?>:
				<input type="text" name="search" id="search" value="<?php echo $this->lists['search'];?>" class="text_area" onchange="document.adminForm.submit();" />
				<button onclick="this.form.submit();"><?php echo JText::_( 'Go' ); ?></button>
				<button onclick="document.getElementById('search').value='';this.form.getElementById('filter_catid').value='0';this.form.getElementById('filter_state').value='';this.form.submit();"><?php echo JText::_( 'Reset' ); ?></button>
			</td>
		</tr>
	</table>
	<table class="adminlist">
	<thead>
		<tr>
			<th width="20">
				<input type="checkbox" name="toggle" value="" onclick="checkAll(<?php echo count( $this->items ); ?>);" />
			</th>
			<th width="300">
				<?php echo JText::_( 'NAMA PROPINSI' ); ?>
			</th>
			<th>
				<?php echo JText::_( 'NAMA KOTA' ); ?>
			</th>				
		</tr>
	</thead>
	<?php
	$k = 0;
	for ($i=0, $n=count( $this->items ); $i < $n; $i++)
	{		$row = &$this->items[$i];
		$checked 	= JHTML::_('grid.id',   $i, $row->propinsi_id.'+'.$row->kota_id);
		$link 		= JRoute::_( 'index.php?option=com_nv&task=edit&layout=form&view=kota&cid[]='. $row->kota_id .'&pid[]='. $row->propinsi_id );

		?>
		<tr class="<?php echo "row$k"; ?>">
			<td>
				<?php echo $checked; ?>
			</td>
			<td align="left">
				<?php echo $row->nama_propinsi; ?>
			</td>
			<td align="left">
				<a href="<?php echo $link; ?>"><?php echo $row->nama_kota; ?></a>
			</td>					
		</tr>
		<?php
		$k = 1 - $k;
	}
	?>
		<tr>
			<td colspan="4">
				<?php echo $this->pageNav->getListFooter(); ?>
			</td>
		</tr>	
	</table>
</div>

<input type="hidden" name="option" value="com_nv" />
<input type="hidden" name="task" value="" />
<input type="hidden" name="boxchecked" value="0" />
<input type="hidden" name="controller" value="kota" />
<?php echo JHTML::_( 'form.token' ); ?>
</form>
